package view
{
	import flash.display.DisplayObjectContainer;
	import flash.text.TextField;
	
	public class TextButton extends TextField
	{
		public var data:Object;
		public function TextButton(parent:DisplayObjectContainer=null,text:String=null)
		{
			this.width = 100;
			this.height = 20;
			this.selectable = false;
			this.border = true;
			this.borderColor = 0xbbb5ac;
			if(text)
				this.htmlText = text;
			if(parent != null)
			{
				parent.addChild(this);
			}
		}
	}
}